package com.myzhouye.biz.model;/***
 *                    _ooOoo_
 *                   o8888888o
 *                   88" . "88
 *                   (| -_- |)
 *                    O\ = /O
 *                ____/`---'\____
 *              .   ' \\| |// `.
 *               / \\||| : |||// \
 *             / _||||| -:- |||||- \
 *               | | \\\ - /// | |
 *             | \_| ''\---/'' | |
 *              \ .-\__ `-` ___/-. /
 *           ___`. .' /--.--\ `. . __
 *        ."" '< `.___\_<|>_/___.' >'"".
 *       | | : `- \`.;`\ _ /`;.`/ - ` : | |
 *         \ \ `-. \_ __\ /__ _/ .-` / /
 * ======`-.____`-.___\_____/___.-`____.-'======
 *                    `=---='
 *
 * .............................................
 *          佛祖保佑             永无BUG
 */

import jakarta.persistence.*;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @program: game01
 * @description: 资源
 * @author: 那条蠢鱼
 * @create: 2025-10-28 16:39
 **/
@Entity
@Table(name = "product_item")
@Data
public class ProductItem {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false, unique = true)
    /**
     * 资源名称
     */
    private String name;

    @Column(nullable = false, precision = 10, scale = 2)
    /**
     * 资源价值，每一个对应的货币价值，小数点后保留2位
     */
    private BigDecimal nums;
}
